package edu.sctu.practice.class01.wulixia.month09_wlx.assgin02.areaofcircle;

/**
 * Created by wulixia on 2015/10/8.
 */
public class Circle{

    private double radius;
    public static int numOfObjects = 0;

    public Circle(double radius) {
        this.radius = radius;
        numOfObjects++;
    }
   //得到圆半径；
    public double isGetRadius(){
        return radius;
    }
    //计算圆面积；
    public double isAreaOfCircle(){
        final double PI = 3.141592654;
        double area;
        area = PI * radius * radius;
        return area;
    }
}
